package com.zhiyou100.crm.service.impl;

import com.zhiyou100.crm.dao.RoleDao;
import com.zhiyou100.crm.dao.impl.RoleDaoImpl;
import com.zhiyou100.crm.service.RoleService;
import com.zhiyou100.crm.util.Role;

import java.util.List;

public class RoleServiceImpl implements RoleService {
    RoleDao roleDao=new RoleDaoImpl();
    @Override
    public List<Role> queryRole() {
        return roleDao.queryRole();
    }

    @Override
    public int deleteRole(int id) {
        return roleDao.deleteRole(id);
    }

    @Override
    public int update(Role role) {
        return roleDao.update(role);
    }

    @Override
    public int insertRole(Role role) {
        return roleDao.insertRole(role);
    }
}
